package com.hd.appcommon.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hd.appcommon.entity.Teacher;
import com.hd.appcommon.mapper.TeacherMapper;
import com.hd.appcommon.service.DeptService;
import com.hd.appcommon.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author administrator
 * @since 2020-11-24
 */
@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, Teacher> implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Teacher> listByRoleId(String roleId) {
        return baseMapper.listByRoleId(roleId);
    }
}
